import axios from '@/libs/api.request'

// 系统商品查询列表查询
export const getsysGoodsList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/system/goods/list',
    method: 'post',
    data: data
  })
}
// 渠道商品查询列表
export const getchannelGoodsList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/channel/goods/list',
    method: 'post',
    data: data
  })
}
// 系统商品单个查询
export const getDetailSysGoodsList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/system/goods/get',
    method: 'post',
    data: data
  })
}
// 门店机台列表
export const getMachineList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/machine/list_by_shop_id',
    method: 'post',
    data: data
  })
}
// 渠道商品上架
export const createChannelList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/channel/goods/create',
    method: 'post',
    data: data
  })
}
// 渠道商品显示隐藏和下架重新上架
export const editChannelList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/channel/goods/edit',
    method: 'post',
    data: data
  })
}
// 查询销售渠道
export const getchannelList = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/product/channel/list',
    method: 'post',
    data: data
  })
}
